import {defineConfig} from "vite";

export default defineConfig({
	server: {
		proxy: {
			// 配置代理
			"/api": {
				target: "http://10.169.31.155:8699",
				changeOrigin: true,
				rewrite: path => path.replace(/^\/api/, ""),
			},
		},
	},
	build: {
		sourcemap: true,
		base: "https://localhost.bcetest.baidu.com",
	},
});
